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

  • 相关阅读:
    4.net基础之委托事件
    2.net基础之反射
    绕过百度网盘速度限制直接下载百度网盘文件
    1.net基础之泛型
    网页图片按需加载
    小米官网图片轮播
    html+css3实现网页时钟
    接口自动化测试方案详解
    接口测试用例设计实践总结
    Mysql 高可用(MHA)-读写分离(Atlas)
  • 原文地址:https://www.cnblogs.com/LH-Xuanluo/p/11306659.html
Copyright © 2011-2022 走看看