+ Map CTRL+l to toggle comments
This commit is contained in:
parent
f879f40bfa
commit
82736abb53
1 changed files with 8 additions and 4 deletions
|
@ -20,6 +20,7 @@ set hls
|
||||||
set number
|
set number
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
|
set mouse=a
|
||||||
" map <C-n> :NERDTreeToggle<CR>
|
" map <C-n> :NERDTreeToggle<CR>
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -36,13 +37,16 @@ noremap <C-p> "+p
|
||||||
noremap <C-Y> "+y
|
noremap <C-Y> "+y
|
||||||
noremap <C-P> "+P
|
noremap <C-P> "+P
|
||||||
" NERDComment thing
|
" NERDComment thing
|
||||||
noremap <C-/> :NERDCommenterToggle
|
map <C-l> gcc
|
||||||
:set mouse=a
|
imap <C-l> <esc>gc i
|
||||||
|
" ----
|
||||||
" specific type maps --
|
" specific type maps --
|
||||||
if !has("nvim")
|
if !has("nvim")
|
||||||
autocmd FileType python map <buffer> <F9> :w<CR>:!clear; python "%"<CR>
|
autocmd FileType python map <buffer> <F9> :w<CR>:!clear; python3 "%"<CR>
|
||||||
|
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:!clear; python3 "%"<CR>
|
||||||
else
|
else
|
||||||
autocmd FileType python map <buffer> <F9> :w<CR>:!python "%"<CR>
|
autocmd FileType python map <buffer> <F9> :w<CR>:!echo -e "executing '%'...\n";python3 "%"<CR>
|
||||||
|
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:!echo -e "executing '%'...\n";python3 "%"<CR>
|
||||||
endif
|
endif
|
||||||
" autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!clear; python "%"'<CR>
|
" autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!clear; python "%"'<CR>
|
||||||
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue