vim and bash changes. Going for powerline setup if possible

This commit is contained in:
jfm 2018-06-06 17:31:11 +02:00
parent e5f13fb686
commit 02675d24d2
3 changed files with 26 additions and 0 deletions

View File

@ -24,4 +24,5 @@ stow -t ~ urxvt
stow -t ~ newsboat
stow -t ~ sublime
stow -t ~ bash
stow -t ~ vim
~~~

View File

@ -158,6 +158,12 @@ PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
#Disable CapsLock
setxkbmap -option ctrl:nocaps
#Powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python3.6/site-packages/powerline/bindings/bash/powerline.sh
#Disable some CTRL for VIM commands
bind -r '\C-s'
stty -ixon

19
vim/.vimrc Normal file
View File

@ -0,0 +1,19 @@
syntax on
set clipboard=unnamed
set smartindent
set shiftwidth=2
set tabstop=2
set number
set autoread
let g:powerline_pycmd="py3"
filetype indent on
:nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a
nnoremap <F7> :tabp<CR>
nnoremap <F8> :tabn<CR>
au BufWinEnter * set number