|
|
@ -103,8 +103,6 @@ vnoremap / /\v
|
|
|
|
" Switch between windows
|
|
|
|
" Switch between windows
|
|
|
|
nnoremap <tab> <C-w><C-w>
|
|
|
|
nnoremap <tab> <C-w><C-w>
|
|
|
|
nnoremap <S-tab> <C-w>W
|
|
|
|
nnoremap <S-tab> <C-w>W
|
|
|
|
" custom shift-tab mapping -- opens new { } and blank line
|
|
|
|
|
|
|
|
inoremap <S-tab> {<Esc>i <Esc>o<CR>}<Esc>ki<tab>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Search mappings: These will make it so that going to the next one in a
|
|
|
|
" Search mappings: These will make it so that going to the next one in a
|
|
|
|
" search will center on the line it's found in.
|
|
|
|
" search will center on the line it's found in.
|
|
|
@ -175,7 +173,6 @@ nmap <leader>w :s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<CR>`'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ========== PLugins leaders and other config ==========
|
|
|
|
" ========== PLugins leaders and other config ==========
|
|
|
|
"
|
|
|
|
|
|
|
|
" search using ack
|
|
|
|
" search using ack
|
|
|
|
nnoremap <leader>a :Ack
|
|
|
|
nnoremap <leader>a :Ack
|
|
|
|
|
|
|
|
|
|
|
@ -240,9 +237,13 @@ let g:ctrlp_working_path_mode = 0
|
|
|
|
let g:ctrlp_max_height = 12
|
|
|
|
let g:ctrlp_max_height = 12
|
|
|
|
let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$\|\.sass-cache$'
|
|
|
|
let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$\|\.sass-cache$'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" custom shift-tab mapping -- opens new { } and blank line
|
|
|
|
|
|
|
|
" Supertab and snipmate backwards-key are overwritten to use shfit + alt / crtl
|
|
|
|
|
|
|
|
let g:SuperTabMappingBackward = '<s-c-tab>'
|
|
|
|
|
|
|
|
let g:snips_trigger_key_backwards = '<s-m-tab>'
|
|
|
|
|
|
|
|
inoremap <s-tab> {<Esc>i <Esc>o<CR>}<Esc>ki<tab>
|
|
|
|
|
|
|
|
|
|
|
|
" ========== Custom Pseudofunctions ==========
|
|
|
|
" ========== Custom Pseudofunctions ==========
|
|
|
|
"
|
|
|
|
|
|
|
|
" add json syntax highlighting
|
|
|
|
" add json syntax highlighting
|
|
|
|
au BufNewFile,BufRead *.json set ft=javascript
|
|
|
|
au BufNewFile,BufRead *.json set ft=javascript
|
|
|
|
" typoscript syntax
|
|
|
|
" typoscript syntax
|
|
|
@ -258,7 +259,6 @@ endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ========== On Save ==========
|
|
|
|
" ========== On Save ==========
|
|
|
|
"
|
|
|
|
|
|
|
|
" A function for stripping Whitespace when saving
|
|
|
|
" A function for stripping Whitespace when saving
|
|
|
|
function! <SID>StripTrailingWhitespaces()
|
|
|
|
function! <SID>StripTrailingWhitespaces()
|
|
|
|
" Preparation: save last search, and cursor position.
|
|
|
|
" Preparation: save last search, and cursor position.
|
|
|
|