zoukankan      html  css  js  c++  java
  • vim之基础配置

    vim之基础配置

    安装方式

    sudo apt-get install vim
    

    无插件配置(简单配置)

    .vimrc文件

    """"""""""""""""""""""""""""""""
    "Interface
    """"""""""""""""""""""""""""""""
    set nu		"show line number
    syntax enable	"syntax highlight  
    syntax on
    
    """"""""""""""""""""""""""""""""
    "Key command
    """"""""""""""""""""""""""""""""    
    set tabstop=4	"set Tab = 4
    set softtabstop=4   	"indent= 4
    set shiftwidth=4 
    
    """"""""""""""""""""""""""""""""
    "Compile
    """"""""""""""""""""""""""""""""
    map <F5> :call CompileRunGcc()<CR>
    func! CompileRunGcc()
        exec "w"
        if &filetype == 'c'
            exec "!g++ % -o %<"
    	exec "! ./%<"
        elseif &filetype == 'cpp'
            exec "!g++ % -o %<"
            exec "! ./%<"
        elseif &filetype == 'java' 
            exec "!javac %" 
            exec "!java %<"
        elseif &filetype == 'sh'
            :!./%
        endif
    endfunc
    
    """""""""""""""""""""""""""""""""
    "Debug
    """""""""""""""""""""""""""""""""	
    map <F8> :call Rungdb()<CR>
    func! Rungdb()
        exec "w"
        exec "!g++ % -g -o %<"
        exec "!gdb ./%<"
    endfunc
    
    """"""""""""""""""""""""""""""""""
    "Others
    """"""""""""""""""""""""""""""""""
    filetype plugin indent on
    set autowrite				
    set ruler           
    set cursorline              
    set magic                   
    set guioptions-=T           
    set guioptions-=m           
    set autoindent
    set cindent
    set mouse=a  " always use mouse 
    

    我的界面

  • 相关阅读:
    set的使用
    dict的使用
    tuple的使用
    Python数据类型字符串
    spring与redis集成之aop整合方案
    MySQL 对于大表(千万级),要怎么优化呢?
    MYSQL千万级数据量的优化方法积累
    Java:按值传递还是按引用传递详细解说
    常用正则表达式
    Java中equals和==的区别
  • 原文地址:https://www.cnblogs.com/Star_Sky/p/6514378.html
Copyright © 2011-2022 走看看