사용법 : :[range]g[lobal]/{pattern}/[cmd]
주어진 범위에 대해 패턴에 매칭하는 줄에 대해서만 주어진 명령을 실행한다.
빈줄을 모두 삭제하는 명령
@echo off | |
REM Run this batch file from any directory to build gvim.exe and vim.exe. | |
REM But first edit the paths and Python version number. | |
REM --- Specify Vim /src folder --- | |
set VIMSRC=D:\temp\vim74\src | |
REM --- Add MinGW /bin directory to PATH --- | |
PATH = C:\MinGW\bin;%PATH% | |
REM --- Also make sure that PYTHON, PYTHON_VER below are correct. --- |
"pycomment | |
"comment selected line | |
function! PyComment#com() | |
let b:l1 = line("'<") | |
let b:l2 = line("'>") | |
let b:cmd_ = ":" . b:l1 . "," . b:l2 . "s/^/#/g" | |
exec b:cmd_ | |
endfunction |
" toggle comment line | |
function! SetCommentPrefix() | |
let s:comment_prefix = "#" | |
if &filetype == "vim" | |
" for vim, inline comment start with \" | |
let s:comment_prefix = "\"" | |
elseif &filetype ==? "c" || &filetype ==? "objc" || &filetype ==? "cpp" | |
let s:comment_prefix = "//" | |
endif |
"SECTION: color change function {{{1 | |
"=============================================================================== | |
"TOPIC: Functions {{{2 | |
"FUNCTION: PrepareColorList | |
"--------------------------- | |
let s:colorindex = 0 | |
function! PrepareColorList() | |
let s:colorlist = [] | |
if !exists('s:colorlist[0]') | |
let s:colorlist = split(glob("$VIMRUNTIME/colors/*.vim"), "\n") |
tell application "System Preperences" | |
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard" | |
tell application "System Events" to click checkbox 1 of tab group 1 of window 1 of application process "System Preferences" | |
end tell | |
if application "System Preferences" is running then | |
tell application "System Preferences" to quit | |
end if |
# This file is NOT licensed under the GPLv3, which is the license for the rest | |
# of YouCompleteMe. | |
# | |
# Here's the license text for this file: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any |
@charset "utf-8"; | |
$fontStackPlain: "Apple SD Gothic Neo Regular", "대한", "Malgun Gothic", serif; | |
$fontStackCode: "Envy Code R", "Monaco", "Menlo", "Consolas", monospace; | |
$fontSizeH1: 2em; | |
$fontSizeH2: 1.8em; | |
$fontSizeH3: 1.4em; | |
$fontSizeTitle: 3em; | |
$colorCode: #09976A; | |
$colorCodeInline: $colorCode + #080808; |