summaryrefslogtreecommitdiffstats
path: root/tools/vim
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-04 05:32:30 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-04 05:32:30 +0000
commit1a5064a6e8bd2395da4ad82c425dd25cb79498c3 (patch)
treee7086de620c68d888e1a040c2b890fc0327e6509 /tools/vim
parent751c0faa61f144ce878379fe00bd6d2892b84231 (diff)
downloadchromium_src-1a5064a6e8bd2395da4ad82c425dd25cb79498c3.zip
chromium_src-1a5064a6e8bd2395da4ad82c425dd25cb79498c3.tar.gz
chromium_src-1a5064a6e8bd2395da4ad82c425dd25cb79498c3.tar.bz2
Add Linux support for ninja-build.py and fix redraw conditional.
Review URL: https://codereview.chromium.org/11038025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/vim')
-rw-r--r--tools/vim/ninja-build.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/vim/ninja-build.vim b/tools/vim/ninja-build.vim
index 7f60663..af416b6 100644
--- a/tools/vim/ninja-build.vim
+++ b/tools/vim/ninja-build.vim
@@ -81,7 +81,7 @@ fun! CrCompileFile()
let l:oldmakepgr = &makeprg
python set_makepgr_to_single_file_ninja()
silent make | cwindow
- if !has('gui')
+ if !has('gui_running')
redraw!
endif
let &makeprg = l:oldmakepgr
@@ -95,5 +95,6 @@ if has('mac')
elseif has('win32')
map <C-F7> :CrCompileFile<cr>
imap <C-F7> <esc>:CrCompileFile<cr>
+elseif has('unix')
+ map <Leader>o :CrCompileFile<cr>
endif
-" TODO(linuxuser): Suggest a keyboard shortcut and send review to thakis@.