template für cpp + ein paar neue leader commands
This commit is contained in:
parent
b03ee2453e
commit
81424f8f95
2 changed files with 11 additions and 2 deletions
9
vim/.vim/templates/cpp
Normal file
9
vim/.vim/templates/cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main( int argc, char *argv[] ) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
# cursor: 6 del
|
|
@ -79,8 +79,8 @@ nnoremap <silent> <leader><space> :noh<cr>
|
|||
nnoremap <silent> <leader>c :%s/\s\+$//e<cr>
|
||||
nnoremap <silent> <leader>v :%s/\n\{3,}/\r\r/e<cr>
|
||||
nnoremap <silent> <leader>p :set invpaste paste?<cr>
|
||||
nnoremap <silent> <leader>a= :Tabularise /=<cr>
|
||||
vnoremap <silent> <leader>a= :'<,'>Tabularize /=<cr>
|
||||
nnoremap <leader>a :Tabularize /
|
||||
vnoremap <leader>a :'<,'>Tabularize /
|
||||
nnoremap <leader>w <C-w>v<C-w>l
|
||||
|
||||
nmap <Esc><left> :tabp<cr>
|
||||
|
|
Loading…
Reference in a new issue