1
0
mirror of https://github.com/amix/vimrc synced 2025-07-04 23:15:01 +08:00

Adding vim-jade.

This commit is contained in:
Maksim Pecherskiy
2014-04-19 14:06:42 -07:00
parent 17b77b08b1
commit 1386102faa
6 changed files with 251 additions and 16 deletions

View File

@ -1,12 +1,12 @@
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
"
" Awesome_version:
@ -19,7 +19,7 @@
" Syntax_highlighted:
" http://amix.dk/vim/vimrc.html
"
" Raw_version:
" Raw_version:
" http://amix.dk/vim/vimrc.txt
"
" Sections:
@ -61,7 +61,7 @@ let g:mapleader = ","
" Fast saving
nmap <leader>w :w!<cr>
" :W sudo saves the file
" :W sudo saves the file
" (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null
@ -99,23 +99,23 @@ set whichwrap+=<,>,h,l
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
set incsearch
" Don't redraw while executing macros (good performance config)
set lazyredraw
set lazyredraw
" For regular expressions turn magic on
set magic
" Show matching brackets when text indicator is over them
set showmatch
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
@ -133,7 +133,7 @@ set foldcolumn=1
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Enable syntax highlighting
syntax enable
syntax enable
try
colorscheme desert
@ -176,8 +176,8 @@ set expandtab
set smarttab
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
set shiftwidth=2
set tabstop=2
" Linebreak on 500 characters
set lbr
@ -227,8 +227,8 @@ map <leader>ba :1,1000 bd!<cr>
map <leader>tn :tabnew<cr>
map <leader>to :tabonly<cr>
map <leader>tc :tabclose<cr>
map <leader>tm :tabmove
map <leader>t<leader> :tabnext
map <leader>tm :tabmove
map <leader>t<leader> :tabnext
" Opens a new tab with the current buffer's path
" Super useful when editing files in the same directory
@ -237,7 +237,7 @@ map <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/
" Switch CWD to the directory of the open buffer
map <leader>cd :cd %:p:h<cr>:pwd<cr>
" Specify the behavior when switching between buffers
" Specify the behavior when switching between buffers
try
set switchbuf=useopen,usetab,newtab
set stal=2
@ -358,7 +358,7 @@ function! CmdLine(str)
exe "menu Foo.Bar :" . a:str
emenu Foo.Bar
unmenu Foo
endfunction
endfunction
function! VisualSelection(direction, extra_filter) range
let l:saved_reg = @"