zoukankan      html  css  js  c++  java
  • 我的vim配置

    set t_Co=256
    set enc=utf-8
    set fileencoding=utf-8
    set fileencodings=utf-8,prc
    colorscheme molokai
    set guifont=Consolas:h9
    let g:molokai_original = 1
    
    set runtimepath+=$GOROOT/misc/vim
    
    "call pathogen#runtime_append_all_bundles()
    "call pathogen#helptags()
    call pathogen#infect()
    
    nnoremap <silent> <F3> :Grep<CR>
    
    let mapleader = ","
    "let g:miniBufExplMapWindowNavVim = 1 
    "let g:miniBufExplMapWindowNavArrows = 1 
    "let g:miniBufExplMapCTabSwitchBufs = 0 
    "let g:miniBufExplModSelTarget = 1 
    "let g:miniBufExplMoreThanOne = 0
    "let g:nerdtree_tabs_open_on_console_startup=1
    "let g:nerdtree_tabs_open_on_gui_startup=1
    set laststatus=2
    let g:buftabs_in_statusline=1
    
    let g:NERDTree_title="[NERDTree]"
    let g:winManagerWindowLayout="NERDTree|MiniBuffExplorer|miniBufExpl"
    let g:NERDTreeWinSize = 20
    let NERDTreeIgnore=['.vim$', '~$', '.pyc$', '.pyo$']
    
    set foldmethod=indent
    set foldlevel=99
    set expandtab
    set textwidth=200
    set tabstop=4
    set softtabstop=4
    set shiftwidth=4
    set autoindent
    set nu
    set splitright
    set mouse=a
    
    map <c-j> <c-w>j
    map <c-k> <c-w>k
    map <c-l> <c-w>l
    map <c-h> <c-w>h
    map <c-=> <c-w>=
    
    noremap <F2> :bprev<CR>
    noremap <F3> :bnext<CR>
    
    map <leader>td <Plug>TaskList
    map <leader>g :GundoToggle<CR>
    map <leader>n :NERDTreeToggle<CR>
    map <leader>j :RopeGotoDefinition<CR>
    map <leader>r :RopeRename<CR>
    nmap <leader>a <Esc>:Ack!<CR>
    
    syntax on
    filetype on
    filetype plugin indent on
    let g:pyflakes_use_quickfix = 0
    let g:pep8_map='<leader>8'
    
    au FileType python set omnifunc=pythoncomplete#Complete
    let g:SuperTabDefaultCompletionType = "context"
    set completeopt=menuone,longest,preview
    
    autocmd bufnewfile *.py,*.pyx,*.pyi,*.pyd call setline(1,'#!/usr/bin/env python') | 
               call setline(2,'#-*-coding: utf-8-*-') | 
               call setline(3,'') | 
               call setline(4,'# Version: 0.1') | 
               call setline(5,'# Author: Song Huang <huangxiaohen2738@gmail.com>') | 
               call setline(6,'# License: Copyright(c) 2015 Song.Huang') | 
               call setline(7,'# Summary: ') | 
               call setline(8,'') | 
               exe "normal G"
    

      

  • 相关阅读:
    Mongodb常用操作(转载)
    java中对象转换工具类,很好用
    IDEA中配置tomcat出现乱码的解决
    小山博客--面试题答案
    Redis简单配置和使用
    线程的控制和线程池
    进程与线程详细解释
    Quartz .Net(定时框架):
    C#面向对象几组关键字的详解(this,base,dynamic,var,const,readonly,is,as)
    C#设计模式--抽象工厂模式(创建型模式)
  • 原文地址:https://www.cnblogs.com/huangxiaohen/p/4281075.html
Copyright © 2011-2022 走看看