Permalink
Browse files

Shortcuts for vim splits and 'lss' = 'less' for both vim and ack

  • Loading branch information...
1 parent ed2b3b9 commit 6f1be8686f75b315916e7e820f71fd83f179b0f0 @milagre committed Jan 30, 2013
Showing with 18 additions and 2 deletions.
  1. +3 −2 .ackrc
  2. +15 −0 .vimrc
View
5 .ackrc
@@ -1,2 +1,3 @@
---type-set=ruby=.ru,.rb,.erb
---type-add=css=.less
+--type-add=ruby=.ru,.erb
+--type-add=css=.less,.lss
+--ignore-dir=public
View
15 .vimrc
@@ -54,6 +54,20 @@ set shiftwidth=4
set textwidth=100
set nowrap
+" Split manipulation
+set wmh=0
+nmap + :resize <CR>
+nmap - :resize -1000<CR>
+nmap = :wincmd =<CR>
+nmap [ :wincmd k<CR>:resize<CR>
+nmap ] :wincmd j<CR>:resize<CR>
+
+" Command Timeouts
+set timeout
+set ttimeout
+set ttimeoutlen=10
+set timeoutlen=10
+
" Tab navigation
nmap <F4> :tabnew<CR>
nmap <F5> :tabp<CR>
@@ -94,6 +108,7 @@ au Syntax {cpp,c,idl} runtime syntax/doxygen.vim
au BufRead,BufNewFile PKGBUILD set ts=2 sts=2 et sw=2
au BufNewFile,BufRead .Xdefaults* set filetype=xdefaults
+au BufNewFile,BufRead *.lss set filetype=less
au BufNewFile,BufRead *.less set filetype=less
au BufNewFile,BufRead *.css set filetype=less

0 comments on commit 6f1be86

Please sign in to comment.