各种配置文件备份

vim

" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty

" You can also specify a different font, overriding the default font
"if has('gui_gtk2')
"  set guifont=Bitstream\ Vera\ Sans\ Mono\ 12
"else
"  set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
"endif

" If you want to run gvim with a dark background, try using a different
" colorscheme or running 'gvim -reverse'.
" http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/ has examples and
" downloads for the colorschemes on vim.org

" Source a global configuration file if available
if filereadable("/etc/vim/gvimrc.local")
  source /etc/vim/gvimrc.local
endif

"highlight
syntax enable
syntax on
colorscheme distinguished
"colorscheme molokai
set guifont=Courier\ 16
"indent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set nu
set t_Co=256

filetype plugin indent on

"MAP function Compile
map <F5> :call Compilecpp()<CR>
func! Compilecpp()
exec "w"
exec "!g++ -std=c++11 % -o %<"
exec "! ./%<"
endfunc

au FocusLost * silent! wa

"braket intend and move in insert mod
"inoremap { {<CR>}<ESC>kA<CR><BS><TAB>
imap ** <ESC>
cmap ** <ESC>
"Toggle Menu and Toolbar
set guioptions-=m
set guioptions-=T
map <silent> <F2> :if &guioptions =~# 'T' <Bar>
        \set guioptions-=T <Bar>
        \set guioptions-=m <bar>
    \else <Bar>
        \set guioptions+=T <Bar>
        \set guioptions+=m <Bar>
    \endif<CR>

 

sublime

keyboard

[
    { "keys": ["f5"], "command": "build", "args": {"select": true} },
    { "keys": ["f1"], "command": "reindent",},
    { "keys": ["*", "*"], "command": "exit_insert_mode",
            "context":
            [
                { "key": "setting.command_mode", "operand": false },
                { "key": "setting.is_widget", "operand": false },
            ]
    },
]

build
{
    "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++",
    "variants":
    [
        {
            "name": "Run",
            "shell": true,
            "cmd": ["gnome-terminal -e ./${file_base_name}"]
        }
    ]
}

windows-build

{
     "cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"],
     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
     "working_dir": "${file_path}",
     "selector": "source.c, source.c++",
     "encoding": "cp936",
     "shell": true,

     "variants":
     [
          {
               "name": "Run",
               //"cmd": ["CMD", "/U", "/C", "g++ ${file} -o ${file_base_name} && ${file_base_name}"]
               "cmd": [ "start", "${file_path}/${file_base_name}.exe"]
          }
     ]
}





usr-setting


{
    "color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
    "font_face": "Courier 10 Pitch",
    "font_options":
    [
        "no_italic",
        "antialias",
        "gray_antialias"
    ],
    "font_size": 14,
    "ignored_packages": [],
    "vintage_ctrl_keys": true,
}

posted @ 2015-11-27 22:38  PlusSeven  阅读(210)  评论(0)    收藏  举报