Anonymous avatar Anonymous committed 5bfa270

Added uncomment commands for js, python and css

Comments (0)

Files changed (1)

 " Programming shortcuts --- {{{
 " comment out line (js)
 autocmd FileType javascript nnoremap <buffer> <localleader>c I//<esc>
+autocmd FileType javascript nnoremap <buffer> <localleader>uc ^xx 
 " comment out line (python)
 autocmd FileType python     nnoremap <buffer> <localleader>c I#<esc>
+autocmd FileType python     nnoremap <buffer> <localleader>uc ^x 
 " comment out line (css)
 autocmd FileType css nnoremap <buffer> <localleader>c I/*<esc>A*/<esc>
+autocmd FileType css nnoremap <buffer> <localleader>c ^xx$xx
 " shortcut for "(i)nside (n)ext set of (p)arenthesis
 onoremap inp :<c-u>normal! f(vi(<cr>
 " shortcut for "(i)nside (l)ast set of (p)arenthesis
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.