Add more vim stuff.

This commit is contained in:
2015-09-26 02:46:37 +02:00
parent 2d761c9539
commit 5588f08075
2 changed files with 10 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ bind-key c new-window -c "#{pane_current_path}"
bind-key -n S-down new-window bind-key -n S-down new-window
bind-key -n S-left prev bind-key -n S-left prev
bind-key -n S-right next bind-key -n S-right next
bind-key -n C-j detach bind-key -n C-q detach
bind-key -n C-F1 command-prompt "split-window -h 'exec man %%'" bind-key -n C-F1 command-prompt "split-window -h 'exec man %%'"
bind-key -n C-F2 split-window -h "exec htop" bind-key -n C-F2 split-window -h "exec htop"

View File

@@ -17,6 +17,7 @@ Plugin 'nblock/vim-dokuwiki'
Plugin 'reedes/vim-pencil' Plugin 'reedes/vim-pencil'
Plugin 'saltstack/salt-vim' Plugin 'saltstack/salt-vim'
Plugin 'sickill/vim-monokai' Plugin 'sickill/vim-monokai'
Plugin 'sjl/gundo.vim'
Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-speeddating' Plugin 'tpope/vim-speeddating'
@@ -45,7 +46,7 @@ filetype plugin indent on
set t_Co=256 set t_Co=256
" == tabs / spaces / indent == " == formatting ==
set tabstop=4 set tabstop=4
set smarttab set smarttab
set softtabstop=4 set softtabstop=4
@@ -54,6 +55,7 @@ set shiftwidth=4
set autoindent set autoindent
set expandtab set expandtab
set smartindent set smartindent
set formatoptions=tcroqnj
" == ui == " == ui ==
set cursorline set cursorline
@@ -128,7 +130,7 @@ set hidden
" == editing == " == editing ==
set backspace=indent,eol,start set backspace=indent,eol,start
set esckeys set esckeys
set matchpairs="(:),{:},[:],<:>" set matchpairs=(:),{:},[:],<:>
set notimeout set notimeout
set ttimeout set ttimeout
set timeoutlen=1000 set timeoutlen=1000
@@ -171,11 +173,15 @@ nnoremap <C-l> <C-w>l
nmap <C-n> :bnext<CR> nmap <C-n> :bnext<CR>
nmap <C-p> :bprev<CR> nmap <C-p> :bprev<CR>
map N Nzz
map n nzz
inoremap jj <ESC> inoremap jj <ESC>
nnoremap <leader>v <C-w>v<C-w>l nnoremap <leader>v <C-w>v<C-w>l
nmap ; :CtrlPBuffer<CR> nnoremap <leader>u :GundoToggle<CR>
" no more ex mode " no more ex mode
nnoremap Q <nop> nnoremap Q <nop>