template für cpp + ein paar neue leader commands

This commit is contained in:
madmaurice 2015-10-27 14:46:13 +01:00
parent b03ee2453e
commit 81424f8f95
2 changed files with 11 additions and 2 deletions

9
vim/.vim/templates/cpp Normal file
View file

@ -0,0 +1,9 @@
#include <iostream>
using namespace std;
int main( int argc, char *argv[] ) {
return 0;
}
# cursor: 6 del

View file

@ -79,8 +79,8 @@ nnoremap <silent> <leader><space> :noh<cr>
nnoremap <silent> <leader>c :%s/\s\+$//e<cr> nnoremap <silent> <leader>c :%s/\s\+$//e<cr>
nnoremap <silent> <leader>v :%s/\n\{3,}/\r\r/e<cr> nnoremap <silent> <leader>v :%s/\n\{3,}/\r\r/e<cr>
nnoremap <silent> <leader>p :set invpaste paste?<cr> nnoremap <silent> <leader>p :set invpaste paste?<cr>
nnoremap <silent> <leader>a= :Tabularise /=<cr> nnoremap <leader>a :Tabularize /
vnoremap <silent> <leader>a= :'<,'>Tabularize /=<cr> vnoremap <leader>a :'<,'>Tabularize /
nnoremap <leader>w <C-w>v<C-w>l nnoremap <leader>w <C-w>v<C-w>l
nmap <Esc><left> :tabp<cr> nmap <Esc><left> :tabp<cr>