2014-02-20 23:24:20 -05:00
|
|
|
"==========================="
|
|
|
|
" Keyboard Configuration: "
|
|
|
|
"==========================="
|
|
|
|
"
|
|
|
|
" Reference: (view plugin documentation for the full list of commands each offers)
|
2014-03-24 17:58:31 -04:00
|
|
|
" <Ctrl-z>, | (A) -> enter this following an emme 'word' (ie: html:5)
|
2014-02-20 23:24:20 -05:00
|
|
|
" <Leader><F2> | (N) -> toggle hexhighlight's hexcode to colours in :gui
|
2014-03-11 03:05:09 -04:00
|
|
|
" cs'" | (N) -> change surrounding '' to "" (any delimiters work)
|
|
|
|
" cs"<q> | (N) -> change surrounding "" to the tag: <q></q>
|
|
|
|
" cst" | (N) -> change any surrounding tag to ""
|
|
|
|
" ds" | (N) -> delete surrounding ""
|
2014-02-20 23:24:20 -05:00
|
|
|
"
|
|
|
|
" Mappings:
|
2014-03-24 17:58:31 -04:00
|
|
|
" <Ctrl-ScrollUp> | (A) -> scroll right
|
|
|
|
" <Ctrl-ScrollDown> | (A) -> scroll left
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Shift-MiddleClick> | (A) -> unbind this from vim so xorg can paste
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Ctrl-t> | (A) -> open a new tab
|
|
|
|
" <Ctrl-n> | (A) -> go to the next open tab
|
|
|
|
" <Ctrl-p> | (A) -> go to the previous open tab
|
2014-02-20 23:24:20 -05:00
|
|
|
" <Tab> | (V) -> indent a block in visual mode
|
2014-03-27 00:56:54 -04:00
|
|
|
" <Shift-Tab> | (V) -> unindent a block in visual mode
|
|
|
|
" \\ | (N) -> show spelling suggestions popup for selection
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" ` | (N) -> toggle the nerdtree sidebar
|
|
|
|
" ~ | (N) -> toggle the tagbar sidebar
|
|
|
|
" p | (V) -> paste and replace the selection
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Shift-p> | (N) -> paste and replace the current word
|
2014-03-26 00:44:02 -04:00
|
|
|
" <F1> | (A) -> toggle line numbers
|
2014-03-27 00:56:54 -04:00
|
|
|
" <F2> | (A) -> toggle line wrapping
|
2014-03-26 00:44:02 -04:00
|
|
|
" <F3> | (A) -> toggle row/column highlighting
|
2014-03-27 00:56:54 -04:00
|
|
|
" <F4> | (A) -> toggle spellcheck
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <F12> | (A) -> toggle collapsed/folded rows
|
2014-02-20 23:24:20 -05:00
|
|
|
" <Leader><C-f> | (N) -> format document and return to current line
|
2014-02-22 15:58:10 -05:00
|
|
|
" <Leader><C-w> | (N) -> remove whitespace
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Ctrl-Up> | (N) -> move to the beginning of the document
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Ctrl-k> | (N) -> move to the beginning of the document
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Ctrl-Down> | (N) -> move to the end of the document
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Ctrl-j> | (N) -> move to the end of the document
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Ctrl-Right> | (N) -> move to the end of the line
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Ctrl-l> | (N) -> move to the end of the line
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Ctrl-Left> | (N) -> move to the beginning of the non-whitespace
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Ctrl-h> | (N) -> move to the beginning of the line
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Ctrl-a> | (N) -> select all
|
|
|
|
" <Shift-Up> | (N) -> select all text above the cursor
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Shift-k> | (N) -> select all text above the cursor
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Shift-Down> | (N) -> select all text below the cursor
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Shift-j> | (N) -> select all text below the cursor
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Shift-Right> | (N) -> select all text to the right of the cursor
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Shift-l> | (N) -> select all text to the right of the cursor
|
2014-03-24 17:20:35 -04:00
|
|
|
" <Shift-Left> | (N) -> select to the beginning of the non-whitespace
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
" <Shift-h> | (N) -> select to the beginning of the line
|
2014-02-20 23:24:20 -05:00
|
|
|
"
|
|
|
|
" (neocomplcache)
|
|
|
|
" <Tab> | (I) -> write the part common to all suggestions
|
|
|
|
" <Backspace> | (I) -> cancle the match dialog (during suggestion)
|
|
|
|
" <Leader><Backspace> | (N) -> undo the most recent match selection
|
|
|
|
"
|
|
|
|
" GVim Mappings:
|
2014-03-26 00:45:47 -04:00
|
|
|
" <Ctrl-F1> | (A) -> toggle the menu
|
|
|
|
" <Ctrl-F2> | (A) -> toggle the toolbar
|
|
|
|
" <Ctrl-F3> | (A) -> toggle the scrollbar
|
2014-02-20 23:24:20 -05:00
|
|
|
"
|
|
|
|
" Aliases:
|
|
|
|
" :wsudo | (N) -> :SudoWrite (write the file as root using sudo)
|
2014-03-11 03:05:09 -04:00
|
|
|
" :esudo | (N) -> :SudoRead (read a file as root using sudo)
|
2014-02-20 23:24:20 -05:00
|
|
|
"
|
|
|
|
" Notes:
|
|
|
|
" *by the default <Leader> key is: \
|
|
|
|
"
|
|
|
|
|
2014-03-11 03:05:09 -04:00
|
|
|
"MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{
|
2014-03-24 17:58:31 -04:00
|
|
|
"hold shift to enable middle-click paste
|
2014-03-24 17:20:35 -04:00
|
|
|
noremap <S-Insert> <MiddleMouse>
|
|
|
|
noremap! <S-Insert> <MiddleMouse>
|
|
|
|
|
2014-03-24 17:58:31 -04:00
|
|
|
"hold ctrl to scroll left/right instead of up/down
|
|
|
|
noremap <C-ScrollWheelUp> 3zl
|
|
|
|
noremap <C-ScrollWheelDown> 3zh
|
|
|
|
|
2014-03-11 03:05:09 -04:00
|
|
|
"tab and untabbing selected blocks
|
2014-03-24 17:20:35 -04:00
|
|
|
vnoremap <Tab> >gv
|
|
|
|
vnoremap <S-Tab> <gv
|
2014-03-11 03:05:09 -04:00
|
|
|
|
2014-03-27 00:56:54 -04:00
|
|
|
"press backslash twice on a mispelled word for suggestions
|
|
|
|
nnoremap \\ ea<C-X><C-S>
|
|
|
|
|
2014-03-11 03:05:09 -04:00
|
|
|
"move to the next and previous tabs
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <silent><expr> <C-t> ':tabnew<CR>'
|
|
|
|
nnoremap <silent><expr> <C-n> ':tabnext<CR>'
|
|
|
|
nnoremap <silent><expr> <C-p> ':tabprev<CR>'
|
2014-03-11 03:05:09 -04:00
|
|
|
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
"map shift-p to paste over a word, and visual paste to replace selection
|
|
|
|
vnoremap p "_d"0P
|
|
|
|
nnoremap <S-p> "_diwP
|
2014-03-11 03:05:09 -04:00
|
|
|
|
2014-03-26 00:44:02 -04:00
|
|
|
"unmap F1 from help then map it to toggle the display of line numbers
|
|
|
|
nnoremap <silent><expr> <F1> ':set number!<CR>'
|
2014-03-27 00:56:54 -04:00
|
|
|
inoremap <silent><expr> <F1> '<Esc>:set number!<CR>a'
|
|
|
|
vnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
2014-03-11 03:05:09 -04:00
|
|
|
|
|
|
|
"toggle line wrapping (and bottom bar if using the gui)
|
|
|
|
if !has("gui_running")
|
2014-03-26 00:44:02 -04:00
|
|
|
nnoremap <silent><expr> <F2> ':set wrap!<CR>'
|
2014-03-27 00:56:54 -04:00
|
|
|
inoremap <silent><expr> <F2> '<Esc>:set wrap!<CR>'
|
|
|
|
vnoremap <silent><expr> <F2> '<Esc>:set wrap!<CR>'
|
2014-03-11 03:05:09 -04:00
|
|
|
else
|
2014-03-26 00:44:02 -04:00
|
|
|
nnoremap <silent><expr> <F2> ':set wrap! go'.'-+'[&wrap]."=b\r"
|
2014-03-27 00:56:54 -04:00
|
|
|
inoremap <silent><expr> <F2> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\ra"
|
|
|
|
vnoremap <silent><expr> <F2> '<Esc>:set wrap! go'.'-+'[&wrap]."=b\rv"
|
2014-03-11 03:05:09 -04:00
|
|
|
endif
|
|
|
|
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
"toggle the cursor line and column
|
2014-03-26 00:44:02 -04:00
|
|
|
nnoremap <silent><expr> <F3> ':set cursorline! cursorcolumn!<CR>'
|
2014-03-27 00:56:54 -04:00
|
|
|
inoremap <silent><expr> <F3> '<Esc>:set cursorline! cursorcolumn!<CR>a'
|
|
|
|
vnoremap <silent><expr> <F3> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
|
|
|
|
|
|
|
"toggle spellcheck
|
|
|
|
nnoremap <silent><expr> <F4> ':set spell!<CR>'
|
|
|
|
inoremap <silent><expr> <F4> '<Esc>:set spell!<CR>a'
|
|
|
|
vnoremap <silent><expr> <F4> '<Esc>:set spell!<CR>a'
|
2014-03-11 03:05:09 -04:00
|
|
|
|
|
|
|
"toggle folded code at foldpoints
|
|
|
|
inoremap <F12> <C-O>za
|
|
|
|
nnoremap <F12> za
|
|
|
|
onoremap <F12> <C-C>za
|
2014-03-27 00:56:54 -04:00
|
|
|
vnoremap <F12> <Esc>zav
|
2014-03-11 03:05:09 -04:00
|
|
|
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
"format the document
|
2014-03-24 17:20:35 -04:00
|
|
|
nnoremap <Leader><C-f> mzgg=G`z<CR>
|
2014-03-21 16:17:15 -04:00
|
|
|
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
"remove trailing white space from the document
|
|
|
|
nnoremap <silent><expr> <Leader><C-w> ':FixWhitespace<CR>'
|
2014-03-24 17:20:35 -04:00
|
|
|
|
|
|
|
"remap keys to scroll through text
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <C-Up> gg
|
|
|
|
nnoremap <C-k> gg0
|
|
|
|
nnoremap <C-Down> G
|
|
|
|
nnoremap <C-j> G$
|
2014-03-24 17:20:35 -04:00
|
|
|
nnoremap <C-Right> $
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <C-l> $
|
2014-03-24 17:20:35 -04:00
|
|
|
nnoremap <C-Left> ^
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <C-h> 0
|
2014-03-24 17:20:35 -04:00
|
|
|
|
|
|
|
"map remap keys to select text
|
|
|
|
nnoremap <C-a> ggvG
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <S-Up> vgg
|
|
|
|
nnoremap <S-k> vgg0
|
|
|
|
nnoremap <S-Down> vG
|
|
|
|
nnoremap <S-j> vG$
|
2014-03-24 17:20:35 -04:00
|
|
|
nnoremap <S-Right> v$
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <S-l> v$
|
2014-03-24 17:20:35 -04:00
|
|
|
nnoremap <S-Left> v^
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <S-h> v0
|
2014-03-11 03:05:09 -04:00
|
|
|
"}}}
|
|
|
|
|
|
|
|
"PLUGIN KEYBINDINGS {{{
|
|
|
|
"toggle the nerd tree sidebar
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <silent><expr> ` ':NERDTree<CR>'
|
2014-03-11 03:05:09 -04:00
|
|
|
|
|
|
|
"toggle the tagbar sidebar
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
nnoremap <silent><expr> ~ ':TagbarToggle<CR>'
|
2014-03-11 03:05:09 -04:00
|
|
|
|
|
|
|
"neocomplcache suggestions: cancel, autocomplete, scroll up and scroll down
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
inoremap <expr><Tab> pumvisible() ? neocomplcache#complete_common_string() : "\<Tab>"
|
|
|
|
inoremap <expr><Backspace> pumvisible() ? neocomplcache#close_popup() : "\<Backspace>"
|
|
|
|
inoremap <expr><Leader><Backspace> neocomplcache#undo_completion()
|
2014-03-11 03:05:09 -04:00
|
|
|
|
|
|
|
"emmet switch triggerkey from <Ctrl-Y> to <Ctrl-Z>
|
|
|
|
let g:user_emmet_leader_key='<C-Z>'
|
|
|
|
"}}}
|
|
|
|
|
|
|
|
"TMUX AND SCREEN COMPATIBILITY: SOME HACKS TO MAKE THINGS WORK RIGHT {{{
|
|
|
|
if $TERM =~ '^screen-256color'
|
|
|
|
nmap <Esc>OH <Home>
|
|
|
|
imap <Esc>OH <Home>
|
|
|
|
nmap <Esc>OF <End>
|
|
|
|
imap <Esc>OF <End>
|
|
|
|
endif
|
|
|
|
"}}}
|
|
|
|
|
|
|
|
"GVIM: MAPPINGS FOR GUI ELEMENTS {{{
|
|
|
|
"map toggles for the menu, toolbar and scrollbar
|
changed the clipboard to 'unnamedplus' which cuts/copies to the xorg clipboard and the desktop one, and pastes from the desktop. I also tweaked the theme to include more variety, make things more readable and apply more logic as to what has what colour/style. F2-F4 are now the line number and highlight toggles, ` and ~ are now toggles for nerdtree/ctags, visual highlighted text is now replaced with p rather than needing to use P, ctrl-t,n,p open new tabs and cycle to the next and previous one respectively, and each ctrl/shift-up/down/left/right combo now has a h,j,k,l equivalent with more complete movement. The autocomplete list no longer has a limit, and folded code is now collapsed at a lower depth.
2014-03-24 20:36:36 -04:00
|
|
|
noremap <silent><expr> <C-F1> ":if &go=~#'m'<Bar>set go-=m<Bar>else<Bar>set go+=m<Bar>endif<CR>"
|
|
|
|
noremap <silent><expr> <C-F2> ":if &go=~#'T'<Bar>set go-=T<Bar>else<Bar>set go+=T<Bar>endif<CR>"
|
|
|
|
noremap <silent><expr> <C-F3> ":if &go=~#'r'<Bar>set go-=r<Bar>else<Bar>set go+=r<Bar>endif<CR>"
|
2014-03-11 03:05:09 -04:00
|
|
|
"}}}
|
|
|
|
|
|
|
|
"ALIASES: COMMAND SHORTCUTS {{{
|
|
|
|
cabbrev wsudo SudoWrite
|
|
|
|
cabbrev esudo SudoRead
|
|
|
|
"}}}
|