zoukankan      html  css  js  c++  java
  • Linux 设置vim指令

    set mouse=a
    set nu
    set autoindent
    set laststatus=2
    set tabstop=4
    set showcmd
    set cursorline
    set makeprg=g++ % -o %< -Wall -std=c++11 -DIVE
    inoremap ( ()<ESC>i
    inoremap [ []<ESC>i
    inoremap { {}<ESC>i
    inoremap ' ''<ESC>i
    inoremap " ""<ESC>i
    color ron
    
    func! Make()
    exec "w"
    exec "make"
    endf
    
    noremap <F8> <Esc>:!time ./%<<CR>
    noremap <F9> <Esc>:call Make()<CR>

    %%%xuefeng

    set fillchars=vert: ,stl: ,stlnc:
    set nu
    set tabstop=4
    set shiftwidth=4
    set softtabstop=4
    set autochdir
    set mouse=a
    set autoindent
    set list
    set listchars=tab:| ,trail:.,extends:>,precedes:<,eol: 
    set bufhidden=hide
    setlocal noswapfile
    map <F1> <ESC> i
    imap <F1> <ESC> i
    imap <F2> <ESC> :wq <CR>
    imap <F3> <ESC> :w <CR> :!printf "33c" <CR> :w <CR> :!more -p100000 %<CR>
    imap <F4> <ESC> :w <CR> :!printf "33c" <CR> :!g++ -g -std=c++11 % -o %< && ./%< -O2 -Wall<CR>
    imap <F5> <ESC> :vsplit <CR>i
    imap <F6> <ESC> :split <CR>i
    imap <F7> <ESC> :tab split <CR>i
    imap <F8> <ESC> :close <CR>i
    imap <C-e> <ESC>:browse w<CR>i
    imap <C-t> <ESC>:u<CR>i
    imap <C-y> <ESC>:red<CR>i

    %%%ooo

    set mouse=a
    set nu
    set autoindent
    set laststatus=2
    set tabstop=4
    set showcmd
    set t_Co=256
    color elflord
    inoremap ( ()<ESC>i
    inoremap [ []<ESC>i
    inoremap { {}<ESC>i
    inoremap ' ''<ESC>i
    inoremap " ""<ESC>i
    color ron
    map <F1> <ESC> i
    imap <F1> <ESC> i
    imap <F2> <ESC> :wq <CR>
    imap <F3> <ESC> :w <CR> :!printf "33c" <CR> :w <CR> :!more -p100000 %<CR>
    imap <F4> <ESC> :w <CR> :!printf "33c" <CR> :!g++ -g -std=c++11 % -o %< && ./%< -O2 -Wall<CR>
    imap <F5> <ESC> :vsplit <CR>i
    imap <F6> <ESC> :split <CR>i
    imap <F7> <ESC> :tab split <CR>i
    imap <F8> <ESC> :close <CR>i
    imap <C-e> <ESC>:browse w<CR>i
    imap <C-t> <ESC>:u<CR>i
    imap <C-y> <ESC>:red<CR>i

    %%%_LH

  • 相关阅读:
    Python开源框架、库、软件和资源大集合
    java常用的框架介绍
    2016年7款最佳 Java 框架
    10款免费开源PHP框架
    10个提升MySQL性能的小技巧
    15个最受欢迎的Python开源框架
    Facebook's React vs AngularJS: A Closer Look
    用c#监控网络状态
    15种主要编程语言介绍及应用场合
    物联网常见通信协议梳理
  • 原文地址:https://www.cnblogs.com/LH-Xuanluo/p/11306659.html
Copyright © 2011-2022 走看看