![]() ![]() Let l:foo = 'bar' " l: local (to function) Let s:ack_program = 'ack' " s: local (to script) Variable prefixes let g:ack_options = '-s -H' " g: global Here’s another example with functions, variables and mapping. "" restore last view, don't change the position of it "" You might want to clean up your 'viewdir' directory now and then.You can either put this in a script ( script.vim) and run it ( :source script.vim), or you can type the commands individually in normal mode as :let and :echo. 'n' on a French one au GUIEnter * simalt ~ x " set the working directory au BufEnter * silent ! lcd %: p: h au BufEnter python execute Python() #Supertab victoria windows#Let g:autocmdLoaded = 1 " start with window maximized 'x' on an English Windows version. Inoremap vnoremap "" inoremap nnoremap inoremap nnoremap inoremap nnoremap inoremap nnoremap inoremap nnoremap inoremap nnoremap nnoremap nnoremap nnoremap # ') = 1 ? " " : "l " nnoremap i "" vnoremap > nnoremap > Inoremap geldwi nnoremap geldwi l inoremap getpos( '. " " warning: remapping in insert mode " would cause abbr. Ignoring leading whitespaces " Hello w*orld! ysiw) Hello (world)! " Hello w*orld! yssB " nnoremap getpos( '. Let g:delimitMate_smart_quotes = 1 let g:delimitMate_smart_matchpairs = " \" ' ` * " let g:delimitMate_excluded_regions = " " let g:delimitMate_expand_cr = 1 " > " surround " " Yo!* dst Yo! " cs change surroundings " 'Hello *world!' cs'> " 'Hello *world!' cs' Hello world! " (123 4*56)/2 cs)] /2 " (123 4*56)/2 cs)/2 " Yo!* cst Yo! " ys yank surroundings " yS yank surroundings and indent it " yss yank surroundings to the current line, ignoring leading whitespaces " ySS yank surroundings to the current line, and indent it. Let g:SuperTabDefaultCompletionType = "context " let g:SuperTabContextDefaultCompletionType = " " " > " vim-markdown " " > " delimitMate " " " let g:delimitMate_quotes = " \" ' ` * " let g:delimitMate_nesting_quotes = let NERDSpaceDelims = 1 " > " jedi-vim " " " let g:jedi#goto_assignments_command = "a " let g:jedi#goto_definitions_command = "d " let g:jedi#documentation_command = "k " let g:jedi#rename_command = "r " let g:jedi#usages_command = "n " let g:jedi#popup_on_dot = 1 let g:jedi#popup_select_first = 0 let g:jedi#auto_close_doc = 1 let g:jedi#show_call_signatures = 1 let g:jedi#use_tabs_not_buffers = 1 let g:jedi#completions_enabled = 1 let g:jedi#use_splits_not_buffers = " " " > " supertab " " ") "cl : Same as NERDComComment except that the delimiters are aligned down the left side "cb : Same as NERDComComment except that the delimiters are aligned down both side "cu : Uncomments the selected line(s). "ca : Switches to the alternative set of delimiters. "cA : Adds comment delimiters to the end of line and goes into insert mode between them. "c$ : Comments the current line from the cursor to the end of line. "cs : Comments out the selected lines 'sexily' "cy : Same as cc except that the commented line(s) are yanked first. "ci : Toggles the comment state of the selected line(s) individually. "cm : Comments the given lines using only one set of multipart delimiters. "c: Toggles the comment state of the selected line(s). " > " nerdcommenter " " cc : Comment out the current line or text selected in visual mode. Nnoremap em :NERDTreeMirror nnoremap ec :NERDTreeClose nnoremap ef :NERDTreeFind nnoremap eb :Bookmark " > " snipmate " " > " nerdtree " " ee :NERDTreeToggle nnoremap eo :NERDTree vim "" To open files in tabs in the instance, use command line option: "gvim -p -remote-tab-silent " > " pathogen " " > " taglist " " " tt :TlistToggle noremap tr w / ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |