vim 메모 사용

더 읽 기
vim 기본 조작

    i/I,a/A,o/O:  
    h,j,k,l:    
    ctrl+f:    
    ctrl+b:    
    v,V,ctrl+v:     n<>->n tab  
    /[?]pattern:  
    :%s/from/to/gc :    
    r/R:  
    d^:    
    D/d$:    
    rx:      
    ynl/ynw:  n   /  
    y$/Y:    
    ndd: n 
    p:  
    x:  
    u:      
    ctrl+r:      

vim 프로필:

" This is my _vimrc under windows platform  
" and it can be used on *nix too  
" all the difference of them is the font setting session  
" happy Viming, guys!  
" copyLeft (#) Abruzzi John  

" autoload _vimrc
autocmd! bufwritepost _vimrc source %

" vim   
set linebreak   " line break  
set nocompatible    " no compatible  
set history=400 " history  
set ruler  
set number  " line number  
set hlsearch    " highlight search  
set noincsearch " no in C search  
set expandtab   " expand table  
set t_vb= "close bell  
set foldmethod=marker  
set tabstop=4   " table step  
set shiftwidth=4      
set nobackup    " don't backup  
set smarttab    " smart table  
set smartindent " smart indent  
set autoindent  " auto indent  
set cindent "cindent  
set cursorline  " hightlight cursor line  

"set guioptions-=m "        
set guioptions-=r "        
set guioptions-=L "        
set guioptions-=T "        

colorscheme desert " color scheme  
 
filetype plugin indent on   " filetype setting  
set completeopt=longest,menu    " for code complete  
  
" the following function is used for show the status bar on the buttom  
function! CurrectDir()  
    let curdir = substitute(getcwd(), "", "", "g")  
    return curdir  
endfunction  
set statusline=\ [File]\ %F%m%r%h\ %w\ \ [PWD]\ %r%{CurrectDir()}%h\ \ %=[Line]\ %l,%c\ %=\ %P  
  
"     
if has("win32")  
    set guifont=Courier_New:h10:cANSI  
endif  
  
"         
if exists("syntax_on")  
    syntax reset  
else  
    syntax on   
endif  

" plugin config begin  

" NERDTree key-map
map  :NERDTreeToggle

" plugin cofig end


" vim tab binding  
map nt :tabnew % "open a new tab in normal mode   
map tc :tabclose " close tab   
map tn :tabnext " next tab   
map tp :tabprev  " preveiw tab   


"       hjkl
imap  
imap  
imap  
imap  

" that's all, folks!  



상용 플러그 인:
1.NERDTree
2.tagList

좋은 웹페이지 즐겨찾기